package com.shop.cloud.util;

public enum ErrorCode {

	SUCCESS(0, "成功"),

	ERROR(1, "网络错误"),

	OBJECT_EXITS(2, "对象已存在"),

	OBJECT_NOT_EXITS(3, "对象不存在"),

	USER_PASSWORD_INVALID(4, "密码错误"),

	USER_NAME_INVALID(5, "用户名错误"),

	PARAMETER_INVALID(6, "参数错误"),

	EMAIL_INVALID(7, "邮箱地址无效"),

	USER_NAME_EXITS(8, "用户名已存在"),

	USER_PASSWORD_EXITS(9, "密码已存在"),

	USER_EMAIL_EXITS(10, "已存在该邮箱"),

	USER_PASSWORD_NOT_EQUALS(11, "两次密码输入不一致"),

	USER_NAME_NOT_EQUALS_PASSWORD(12, "用户名和密码不能相同"),

	USER_AGREEMENT(13, "请同意用户协议"),

	FORM_REPEAT_SUBMIT(14, "表单重复提交"),

	CSRF_TOKEN_INVALID(15, "Data connection errors!"),

	DB_CONNECTION_ERROR(16, "Data connection errors!"),

	USER_NOT_LOGINED(17, "用户未登录"),

	NOT_APP_CLIENT(18, "非app客户端请求"),

	NOT_ADMIN_CLIENT(19, "非管理端请求"),

	INTERNAL_ERROR(20, "网络异常"),

	FILE_NOT_FOUNT(21, "文件不存在"),

	FILE_SIZE_LIMIT_EXCEEDED(22, "超过文件大小限制"),

	INVALID_EXTENSION(23, "不支持此类文件上传"),

	FILE_NAME_LENGTH_LIMIT_EXCEEDED(24, "文件名长度超过限制"),

	USER_NOT_PERMISSION(25, "用户无访问权限"),

	ID_CARD_ILLEAGAL(26, "身份证号错误"),

	OPREATION_BEYOND_RANFE(27, "超过数据区间"),

	NOT_CASCADE_DELETE(28, "无法级联删除"),

	INVALID_REQUEST(29, "无效的请求"),

	USER_NOT_LOGINED2(30, "用户已经被禁用!"),
	
	AUDIT(40, "用户正在审核中,暂时无法登陆!"),
	
	DISABLE(43, "用户正在冻结中,暂时无法登陆!"),
	
	UN_DATA(41, "待完善企业信息!"),
	
	UN_AUDIT(42, "审核未通过!"),
	
	UN_ADD_USER(43, "无法添加当前用户为好友!"),
	
	INVALID_AUTHENTICATION_CODE(45, "无效的验证码"),
	
	VERIFICATION_CODE_EXPIRED(46, "验证码已过期"),

	TOKEN_EXPIRED(100, "token过期,重新访问!"),

	UNKNOWN(2000, "网络错误,请重新操作!"),

	INVALID_ACCESS(10000, "此操作无权限"),

	SEND_SMS_ERROR(200, "发送短信错误"),
	
	INSERT_SEND_SMS_ERROR(201, "插入短信错误"),
	
	CUSTOMER_TYPE_ERROR(202, "客户类型只能是1/2"),
	
	INSERT_DATA_ERROR(203, "插入数据错误"),
	
	UPDATE_DATA_ERROR(226, "更新数据错误"),
	
	UPDATE_LAST_COMMUNICATE_TIME_ERROR(204, "更新最后交流时间错误"),
	
	
	INSERT_LOAN_INFO_ERROR(205, "插入loanInfo数据错误"),
	
	INSERT_COMMUCATION_ERROR(206, "插入交流记录错误"),
	
	UPDATE_COMMUCATION_ERROR(222, "更新交流记录错误"),
	
	REMOVE_COMMUCATION_ERROR(223, "删除交流记录错误"),
	
	INSERT_LOAN_INFO_DETAIL_ERROR(206, "插入loanInfoDetail数据错误"),
	
	UPDATE_USER_ACCOUNT_ERROR(207, "更新用户账户错误"),
	
	INSERT_USER_CONSUME_ERROR(208, "插入userConsume数据错误"),
	
	UPDATE_LOAN_INFO_ERROR(209, "更新loanInfo数据错误"),
	
	REMOVE_LOAN_INFO_ERROR(211, "删除loanInfo数据错误"),
	
	UPDATE_LOAN_INFO_DETAIL_ERROR(210, "更新loanInfoDetail数据错误"),
	
	INSERT_CUSTOMER_ERROR(212, "插入客户数据错误"),
	
	UPDATE_CUSTOMER_ERROR(213, "更新客户数据错误"),
	
	UPDATE_CUSTOMER_POINT_ERROR(217, "更新客户积分错误"),
	
	REMOVE_CUSTOMER_ERROR(214, "删除客户数据错误"),
	
	REMOVE_DATE_ERROR(215, "删除数据错误"),
	
	NOT_FIND_REIENDS(216, "找不到好友数据"),

	INSERT_PEERS_ERROR(217, "插入同行数据错误"),
	
	REMOVE_PEERS_ERROR(218, "删除同行数据错误"),
	
	UPDATE_PEERS_ERROR(222, "插入同行数据错误"),
	
	REMOVE_RECOMMAND_LIST_ERROR(219, "删除人脉圈错误"),
	
	INSERT_RECOMMAND_LIST_ERROR(220, "插入人脉圈数据错误"),
	
	UPDATE_RECOMMAND_LIST_ERROR(221, "更新人脉圈数据错误"),
	
	NOT_FIND_USER_COMPANY(224, "找不到用户企业数据"),

	UN_DATA_AUDIT(225, "提交的资料不正确，请重新提交!"),
	
	;
	
	private int code;
	private String message;

	private ErrorCode(int code, String message) {
		this.message = message;
		this.code = code;
	}

	public int getCode() {
		return code;
	}

	public String getMessage() {
		return message;
	}

}
